package com.zg.system.auth.domain.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
public class RoleAddReq implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "角色名称", required = true)
    @NotBlank(message = "【角色名称】字段不能为NULL")
    private String name;

    @ApiModelProperty(value = "角色编码", required = true)
    @NotBlank(message = "【角色编码】字段不能为NULL")
    private String code;
}
